<?php
/**
 * Created by PhpStorm.
 * User: kouyate
 * Date: 27/03/14
 * Time: 20:51
 */
?>
<div class="panel panel-primary" >
    <div class="panel-heading"><b>
            Détails du restaurant &bkarow; <?php echo $resto->nom_restaurant ?></b>
</div>
<div class="panel-body">
    <table class="table table-hover">
        <tr>
            <th>Téléphone</th>
            <th>Email</th>
            <th>Description</th>
            <th>Site web</th>

        </tr>
        <tr>
            <td><b style="color: green"><?php echo $resto->telephone_restaurant ?></b></td>
            <td><b style="color: green"><?php echo $resto->email_restaurant ?></b></td>
            <td><?php echo $resto->description_restaurant ?></td>
            <td><?php if(!strpos($resto->site_restaurant,".")) echo 'Aucune descrption';
                else echo "<a href='".$resto->site_restaurant."' target='_blank'>".$resto->site_restaurant."</a>";  ?>
            </td>

        </tr>
    </table>
</div>
<div class="panel panel-footer alert alert-info">
    <b>Restaurant se trouvant à <?php echo $resto->adresse.', '.$resto->code_postal.', '.$resto->ville ?></b>
</div>
</div>
<a href="<?php echo SITE ?>" class="btn btn-info ">Retourner à l'accueil</a>
<a href="<?php echo SITE.'index/rechercher/' ?>" class="btn btn-primary ">Rechercher un restaurant</a>


<div class="panel panel-primary" >
    <div class="panel-heading"><b>
            Options et Services du Restaurant &bkarow; <?php echo $resto->nom_restaurant ?></b>
    </div>
    <div class="panel-body">
<table class="table table-hover">
    <thead>
    <tr>
        <th>Nom du services (Options)</th>
        <th>Selection </th>
        <th>Nom du services (Options)</th>
        <th>Selection</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td><strong>Repas amoureux &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="repas_amoureux" id="1" <?php echo $resto->repas_amoureux
                =="" ? "" :"checked" ?> />
                <label for="1"></label>
            </div>
        </td>

        <td><strong>Repas affaire &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="repas_affaire" id="2" <?php echo $resto->repas_affaire
                =="" ? "" : "checked" ?> />
                <label for="2"></label>
            </div>
        </td>
    </tr>

    <tr>
        <td><strong>Wifi &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="wifi" id="3" <?php echo $resto->wifi=="" ? "" : "checked"
                ?> />
                <label for="3"></label>
            </div>
        </td>

        <td><strong>Accès handicapés &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="acces_handicapes" id="4" <?php echo $resto->
                    acces_handicapes=="" ? "" :"checked" ?> />
                <label for="4"></label>
            </div>
        </td>
    </tr>
    <tr>
        <td><strong>Sortie entre amis &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="entre_amis" id="5" <?php echo $resto->entre_amis
                =="" ? "" : "checked"?> />
                <label for="5"></label>
            </div>
        </td>

        <td><strong>Climatisation &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="climatisation" id="6" <?php echo $resto->climatisation==""
                    ?"" :"checked" ?> />
                <label for="6"></label>
            </div>
        </td>
    </tr>
    <tr>
        <td><strong>Sortie en famille &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="sortie_famille" id="7" <?php echo $resto->sortie_famille
                =="" ? "" : "checked"?> />
                <label for="7"></label>
            </div>
        </td>

        <td><strong>Ambiance festive &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="ambiance_festive" id="8" <?php echo $resto->
                    ambiance_festive =="" ? "" :"checked" ?> />
                <label for="8"></label>
            </div>
        </td>
    </tr>
    <tr>
        <td><strong>Rencontres &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="rencontres" id="9" <?php echo $resto->rencontres
                =="" ? "" : "checked"?> />
                <label for="9"></label>
            </div>
        </td>

        <td><strong>Anglais parlé &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="anglais_parle" id="10" <?php echo $resto->anglais_parle
                ==""?"" :"checked" ?> />
                <label for="10"></label>
            </div>
        </td>
    </tr>
    <tr>
        <td><strong>Anniversaire &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="anniversaire" id="13" <?php echo
                $resto->anniversaire=="" ? "" : "checked"?> />
                <label for="13"></label>
            </div>
        </td>

        <td><strong>Lieu calme &raquo;</strong></td>
        <td>
            <div class="squaredOne">
                <input type="checkbox" disabled name="lieu_calme" id="14" <?php echo $resto->
                    lieu_calme==""?"" :"checked" ?> />
                <label for="14"></label>
            </div>
        </td>
    </tr>
    </tbody>
    <tfoot>
    <tr class="alert alert-info">
        <th>Nom du services (Options)</th>
        <th>Selection </th>
        <th>Nom du services (Options)</th>
        <th>Selection</th>
    </tr>
    </tfoot>
</table>
        </div></div>